package frame.options;

import java.awt.Dimension;

import javax.swing.JMenuBar;

import frame.SimulatorFrame;
import frame.options.sdn.SdnMenu;
import frame.options.simulation.SimulationMenu;
import frame.options.simulator.SimulatorMenu;
import frame.options.virtual.VirtualMenu;

@SuppressWarnings("serial")
public class Options extends JMenuBar
{
	private SimulatorMenu simulatorMenu;
	public SimulatorMenu getSimulatorMenu(){ return simulatorMenu; }
	public void setSimulatorMenu( SimulatorMenu simulatorMenu ){ this.simulatorMenu = simulatorMenu; }
	
	private SdnMenu sdnMenu;
	public SdnMenu getSdnMenu(){ return sdnMenu; }
	public void setSdnMenu( SdnMenu sdnMenu ){ this.sdnMenu = sdnMenu; }
	
	private VirtualMenu virtualMenu;
	public VirtualMenu getVirtualMenu(){ return virtualMenu; }
	public void setVirtualMenu( VirtualMenu virtualMenu ){ this.virtualMenu = virtualMenu; }
	
	private SimulationMenu simulationMenu;
	public SimulationMenu getSimulationMenu(){ return simulationMenu; }
	public void setSimulationMenu( SimulationMenu simulationMenu ){ this.simulationMenu = simulationMenu; }
	
	public Options( SimulatorFrame simulatorFrame )
	{
		this.setSimulatorMenu( new SimulatorMenu( simulatorFrame ) );
		this.setSdnMenu( new SdnMenu( simulatorFrame ) );
		this.setVirtualMenu( new VirtualMenu( simulatorFrame ) );
		this.setSimulationMenu( new SimulationMenu( simulatorFrame ) );
				
		this.setPreferredSize( new Dimension( 1, 21 ) );
		this.add( this.getSimulatorMenu() );
		this.add( this.getSdnMenu() );
		this.add( this.getVirtualMenu() );
		this.add( this.getSimulationMenu() );
	}

}
